home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 November
/
EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso
/
earcd
/
program
/
assembly
/
abakus.lha
/
Abakus
/
Demos
/
MakeAssign.a
< prev
next >
Wrap
Text File
|
1995-06-27
|
1KB
|
79 lines
module
Input stdin
Output stdout
raw
GetCurrentDirName [#puff,#100]
AssignLate [#Abakus,#puff]
Execute #assi #0 #0
Write stdout [#jn #len4]
warten
Waits warten
ReadsChar #x
Select.b x
case.b #13 goto ja
case.b #"j" goto ja
case.b #"J" goto ja
aus
Return
ja
Write stdout [#ok #len5]
Open #us #1005 [usad]
error aus
Seek usad #0 #1
Write usad [#begABK #len1]
Write usad [#assi1 #len6]
;Write0 usad #puff
lea puff,a3
Repeat [a]
Write usad [a3 #1]
inc.l a3
Until.b [a] (a3) = #0
Write usad [#lf #1]
Write usad [#assi #len2-1]
Write usad [#endABK #len3]
Close usad
Return
Abakus dc.b "Abakus",0
begABK dc.b 10,";Beginn Abakus",10
len1 equ *-begABK
puff ds.b 100
endABK dc.b 10,";End Abakus",10
len3 equ *-endABK
assi1 dc.b "Assign Abakus: "
len6 equ *-assi1
assi dc.b "c:Assign c: Abakus:c add",0
len2 equ *-assi
ok dc.b "Assign wird angehängt.",10
len5 equ *-ok
jn dc.b "Assign in User-Startup einfügen (J/n) ? ",0
len4 equ *-jn
us dc.b "s:user-startup",0
x ds.b 2
lf dc.b 10
cnop 0,4
usad ds.l 1